export const Methods = {
  template: `
    <el-card header="Methods" ref="container" class="el-card__header-no-border">
      <el-table :data="crudData" style="width: 100%">
        <el-table-column prop="name" label="方法名" width="100" />
        <el-table-column prop="description" label="描述" />
        <el-table-column prop="type" label="参数" />
      </el-table>
    </el-card>
  `,

  data() {
    return {
      crudData: [
        {
          name: 'getModel',
          description: '获取表单参数',
          type: '() => object',
        },
        {
          name: 'setValue',
          description: '设置表单参数',
          type: '(key: string, value: any) => void',
        },
        {
          name: 'reset',
          description: '重置',
          type: '() => void',
        },
        {
          name: 'validate',
          description: '校验参数，成功的话返回表单参数',
          type: '() => Promise<object>',
        },
      ],
    }
  }
}